const
    connect = require('gulp-connect'),
    less = require('gulp-less');
const { watch, src, dest } = require('gulp');

var host = {
    port: 4000,
    html: 'index.html'
};

function server() {
    connect.server({
        port: host.port,
        livereload: true
    });
}

watch(['less/*.less'], function (cb) {
    return src(['less/*.less'])
        .pipe(less())
        .pipe(dest('css/'));
    cb();
});
exports.default = server